{include file="public/nheader" /}
<div class="layui-fluid">
    <div class="layui-card">
        <!-- // 创建数据实例 -->
        <table id="lay-tableList" lay-filter="lay-tableList"></table>
    </div>
</div>
{include file="public/nfooter"}
<script>
    layui.use(['table'], function () {
        var table = layui.table;
        /*
         * 初始化表格
        */
        var isTable = table.render({
            elem: "#lay-tableList",
            where: {
                user_id: "{:input('user_id/d',0)}"
            }
            , url: "{:url()}"
            , page: true
            , size: 'lg'
            , even: true
            , cols: [[
                { field: 'id', align: 'center', sort: true, width: 80, title: 'ID' },
                { field: 'befores', width: 150, align: 'center', title: '交易前金额' },
                { field: 'money', width: 150, align: 'center', title: '交易金额' },
                { field: 'after', width: 150, align: 'center', title: '交易后金额' },
                { field: 'info', width: 150, align: 'center', title: '备注' },
                // { field: 'source', width: 150, align: 'center', title: '来自订单ID' },
                { field: 'created', width: 200, align: 'center', title: '添加时间' },
            ]]
        })
    })
</script>
</body>